#ifndef __FILE_H__
#define __FILE_H__

#ifdef _WIN32
#include <direct.h>
#define MAKE_DIR(path) _mkdir(path)
#else
#define MAKE_DIR(path) mkdir(path, 0777)
#endif

int save_map();
map_p load_map();
int save_per();
int load_per();
void save();
void ensureDirectoryExists(const char *path);
int createDirectory(const char *path);
#endif